.class Lcom/estrongs/fs/impl/local/b$f;
.super Ljava/lang/Object;
.source "DocumentTreeAuthHelper.java"

# interfaces
.implements Lcom/estrongs/android/pop/esclasses/ESActivity$b;
.implements Lcom/jecelyin/common/app/JecActivity$a;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/fs/impl/local/b;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0xa
    name = "f"
.end annotation


# instance fields
.field private a:Les/sp;

.field private b:Lcom/jecelyin/editor/v2/ui/d;

.field private final c:Lcom/estrongs/fs/impl/local/b$e;


# direct methods
.method private constructor <init>(Lcom/jecelyin/editor/v2/ui/d;Lcom/estrongs/fs/impl/local/b$e;)V
    .locals 0

    .line 6
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 7
    iput-object p1, p0, Lcom/estrongs/fs/impl/local/b$f;->b:Lcom/jecelyin/editor/v2/ui/d;

    .line 8
    iput-object p2, p0, Lcom/estrongs/fs/impl/local/b$f;->c:Lcom/estrongs/fs/impl/local/b$e;

    return-void
.end method

.method synthetic constructor <init>(Lcom/jecelyin/editor/v2/ui/d;Lcom/estrongs/fs/impl/local/b$e;Lcom/estrongs/fs/impl/local/b$a;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1, p2}, Lcom/estrongs/fs/impl/local/b$f;-><init>(Lcom/jecelyin/editor/v2/ui/d;Lcom/estrongs/fs/impl/local/b$e;)V

    return-void
.end method

.method private constructor <init>(Les/sp;Lcom/estrongs/fs/impl/local/b$e;)V
    .locals 0

    .line 3
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 4
    iput-object p1, p0, Lcom/estrongs/fs/impl/local/b$f;->a:Les/sp;

    .line 5
    iput-object p2, p0, Lcom/estrongs/fs/impl/local/b$f;->c:Lcom/estrongs/fs/impl/local/b$e;

    return-void
.end method

.method synthetic constructor <init>(Les/sp;Lcom/estrongs/fs/impl/local/b$e;Lcom/estrongs/fs/impl/local/b$a;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2}, Lcom/estrongs/fs/impl/local/b$f;-><init>(Les/sp;Lcom/estrongs/fs/impl/local/b$e;)V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 3

    .line 1
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.OPEN_DOCUMENT_TREE"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "android.content.extra.SHOW_ADVANCED"

    const/4 v2, 0x1

    .line 2
    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 3
    invoke-virtual {p0, v0}, Lcom/estrongs/fs/impl/local/b$f;->a(Landroid/content/Intent;)V

    return-void
.end method

.method a(Landroid/content/Intent;)V
    .locals 2

    const/16 v0, 0x101f

    .line 4
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/fs/impl/local/b$f;->a:Les/sp;

    if-eqz v1, :cond_0

    .line 5
    iget-object v1, p0, Lcom/estrongs/fs/impl/local/b$f;->a:Les/sp;

    invoke-interface {v1, p0}, Les/sp;->b(Lcom/estrongs/android/pop/esclasses/ESActivity$b;)V

    .line 6
    iget-object v1, p0, Lcom/estrongs/fs/impl/local/b$f;->a:Les/sp;

    invoke-interface {v1, p1, v0}, Les/sp;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0

    .line 7
    :cond_0
    iget-object v1, p0, Lcom/estrongs/fs/impl/local/b$f;->b:Lcom/jecelyin/editor/v2/ui/d;

    invoke-interface {v1, p0}, Lcom/jecelyin/editor/v2/ui/d;->b(Lcom/jecelyin/common/app/JecActivity$a;)V

    .line 8
    iget-object v1, p0, Lcom/estrongs/fs/impl/local/b$f;->b:Lcom/jecelyin/editor/v2/ui/d;

    invoke-interface {v1, p1, v0}, Lcom/jecelyin/editor/v2/ui/d;->startActivityForResult(Landroid/content/Intent;I)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    const/4 p1, -0x1

    const/4 v1, 0x0

    .line 9
    invoke-virtual {p0, v0, p1, v1}, Lcom/estrongs/fs/impl/local/b$f;->onActivityResult(IILandroid/content/Intent;)V

    :goto_0
    return-void
.end method

.method public onActivityResult(IILandroid/content/Intent;)V
    .locals 1

    const/16 v0, 0x101f

    if-ne p1, v0, :cond_2

    const/4 p1, -0x1

    if-ne p2, p1, :cond_0

    if-eqz p3, :cond_0

    .line 1
    iget-object p1, p0, Lcom/estrongs/fs/impl/local/b$f;->c:Lcom/estrongs/fs/impl/local/b$e;

    invoke-virtual {p3}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object p2

    invoke-interface {p1, p2}, Lcom/estrongs/fs/impl/local/b$e;->a(Landroid/net/Uri;)V

    goto :goto_0

    .line 2
    :cond_0
    iget-object p1, p0, Lcom/estrongs/fs/impl/local/b$f;->c:Lcom/estrongs/fs/impl/local/b$e;

    const/4 p2, 0x0

    invoke-interface {p1, p2}, Lcom/estrongs/fs/impl/local/b$e;->a(Landroid/net/Uri;)V

    .line 3
    :goto_0
    iget-object p1, p0, Lcom/estrongs/fs/impl/local/b$f;->a:Les/sp;

    if-eqz p1, :cond_1

    .line 4
    invoke-interface {p1, p0}, Les/sp;->a(Lcom/estrongs/android/pop/esclasses/ESActivity$b;)V

    goto :goto_1

    .line 5
    :cond_1
    iget-object p1, p0, Lcom/estrongs/fs/impl/local/b$f;->b:Lcom/jecelyin/editor/v2/ui/d;

    invoke-interface {p1, p0}, Lcom/jecelyin/editor/v2/ui/d;->a(Lcom/jecelyin/common/app/JecActivity$a;)V

    :cond_2
    :goto_1
    return-void
.end method
